package 多线程.复习.创建线程的方法;

public class ImplRunable implements Runnable{
    @Override
    public void run() {
        System.out.println("子线程");
    }
}
class Main{
    public static void main(String[] args) {
        Thread thread = new Thread(new ImplRunable());
        thread.start();
        System.out.println("主线程.....");
    }
}
